# coding: utf-8
'''
Created on May 18, 2011

@author: Adam Matysiak
'''
import unittest
import ListFuse as fuse

from tfct.fuse import parser
from tfct.fuse import model

class TestFuse(unittest.TestCase):    
    def setUp(self):
        self.manager = model.FUSE({'screenspec': {}})
        self.fuse = fuse.ListFuse()
        self.conf = {} 
        
    def testUC1(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC1())
        self.assertEqual(uc, self.fuse.genUC1())
        
    def testUC2(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC2())
        self.assertEqual(uc, self.fuse.genUC2())
        
    def testUC3(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC3())
        self.assertEqual(uc, self.fuse.genUC3())
        
    def testUC4(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC4())
        self.assertEqual(uc, self.fuse.genUC4())
        
    def testUC5(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC5())
        self.assertEqual(uc, self.fuse.genUC5())
        
    def testUC6(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC6())
        self.assertEqual(uc, self.fuse.genUC6())
        
    def testUC7(self):
        f = parser.FuseParser()
        uc = f.run_text(self.fuse.getUC7())
        self.assertEqual(uc, self.fuse.genUC7())
        
    def testUC8(self):
        f = parser.FuseParser(self.conf)
        uc = f.run_text(self.fuse.getUC8())
        self.assertEqual(uc, self.fuse.genUC8())
    
if __name__ == "__main__":
    #import sys;sys.argv = ['', 'Test.testCreate']
    unittest.main()